<template>
	<view class="carbon-data">
		<view class="title">
			总碳数据（kgCO₂e）
		</view>
		<view class="content">
			<view class="item">
				<view class="top">总碳足迹</view>
				<view class="data">
					{{ zSum }}
					<!-- <span></span> -->
				</view>
			</view>
			<view class="item">
				<view class="top">总碳固存</view>
				<view class="data">
					{{ fSum }}
					<!-- <span>kgCO₂e</span> -->
				</view>
			</view>
			<view class="item">
				<view class="top">差值</view>
				<view class="data">
					{{ c }}
					<!-- <span>kgCO₂e</span> -->
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			zSum: {
				type: Number,
				default: 0
			},
			fSum : {
				type: Number,
				default: 0
			},
			c : {
				type: Number,
				default: 0
			}
		},
		data() {
			return {
			
			}
		},
		components: {
			
		}
	}
</script>

<style lang="less" scoped>
	.carbon-data {
		width: 100%;
		margin-top: 30rpx;
		padding: 20rpx 30rpx;
		box-sizing: border-box;
		border-radius: 25rpx;
		background-color: rgba(255,255,255,.1);
		
		.title {
			color: #fff;
			font-size: 35rpx;
		}
		
		.content {
			display: flex;
			align-items: center;
			justify-content: space-around;
			margin-top: 10rpx;
			color: #e7e9f4;
			
			.item {
				// background-color: pink;
				
				.top {
					font-size: 30rpx;
					color: #dde0ed;
				}
				
				.data {
					margin-top: 10rpx;
					font-size: 37rpx;
					font-weight: 700;
					text-align: center;
					
					span {
						font-size: 25rpx;
						color: #dde0ed;
					}
				}
			}
		}
	}
</style>